Absolute path to the file to lock.
Callback to execute while holding the lock.
Stale threshold in ms. Defaults to STALE_LOCK_MS.
Fails fast (no retries) with an ELOCKED error when the lock is held,
matching the v0.x behaviour. The lock is always released in a finally
block. The target file need not exist. fn must complete well within
staleMs: the lock is not refreshed while held, so a longer callback can
be taken over by another process.
Execute a callback while holding an exclusive lock on a file.