Fixed CAS for unlock