Locking Primitives in a Database System | Synapse