Add a toggle lock command