lockfile: record the primary process.