Lockfile / singleton PHP implementation to prevent a process from being scheduled while a previous incarnation is still running