procd: support pidfile writing.