Better enforced locking dynamics. Now only removes lockfile after delay.
Will only exit where there is a lockfile clash, to prevent multiple
runaway processes.