`waitToSetLock` uses `c_fcntl_lock` which is an `unsafe` FFI import, but the call may block indefinitely. It was the root cause of https://gitlab.haskell.org/ghc/ghc/-/issues/15485 in GHC <= 9.0 This is related to #34 but this particular call should be uncontroversial to fix (I think).