Added new locking primitives