Moved PID to be the first element of lockfile (for easier cleaning up of stale lockfiles)