Offers locking a mechanism to prevent race conditions.
Optional
the key of the resource to lock
the code which should run once the lock was acquired
'timeout' or 'occupation-time-exceed' errors
Offers locking a mechanism to prevent race conditions.