Hi,
 
I need to be able to lock certain operations on a Resource or Resource Collection to make their access serialized. 
 
Is there already any in-built support for it?
 
If not, I was thinking of creating a lock file in /var/lock/wok and to block access by other users to that resource unless the lock is cleared. This lock(s) also needs to be cleared by wok startup script just in case the wok crashed or stopped forcefully before the lock is cleared by the owner process.