Implemented Basic Functionality For Locking\n TODO: Signal and Deadlock Detection