Commented out debugging printf for returning from the locking function as well