Atomic lockfile testing and creation, as suggested by Bdot