Implement simple mutex