No-op locking, which throws exceptions (Lukko.NoOp)
Lukko module exports the best option for the target platform with uniform API.
There are alternative file locking packages:
GHC.IO.Handle.Lock in base >= 4.10 is good enough for most use cases.
However, uses only Handles so these locks cannot be used for intra-process locking.
(You should use e.g. MVar in addition).