Simple lock class