Lock/unlock object