X_LOCK_NOT_ACQUIRED
Means
withLock could not take the lock within its wait bound
Typical cause
another holder kept the key past wait:, or wait: is shorter than the work the holder does under it
Fix
withLock(key, fn, { ttl: '30s', wait: '10s' }) — in the calling file: raise wait:, or retry the caller later