Add a lock (called when lock:acquired fires).
lock:acquired
Locks whose resource scope matches the given scope (prefix match).
Remove all locks (called on app startup to clear stale locks).
Whether any lock matches the given scope.
Remove a lock by id (called when lock:released fires).
lock:released
Add a lock (called when
lock:acquiredfires).