Change Lock function signature.