Swapping locks