Remove lock methods from context classes.