Implement simple lock