Implemented a locking mechanism using an integer lock (kernel variable) and atomic operations (Part 6)