Implemented CLH and MLS locks