refine lock