Ensure single instance of a command without leaving stale lock files.