fix(pid): pidfile creation has a lock