Stores the actual pid in the lockfile