lock working