Execute a callback while holding a file lock.
Absolute path to the file to lock.
Async callback to execute while holding the lock.
Acquires a lock on the file, executes the callback, and releases the lock in a finally block. The lock uses a 2-minute stale threshold and retries up to 5 times.
Execute a callback while holding a file lock.