Two Phase Locking Mechanism Implementation