Lock conversion implemented, not tested.