edge case posix file lock deadlock detection