I made the status check and the update a single atomic operation. I used the synchronous nature of the library to make the locking reliable. What I learned: • Concurrency bugs are hard to debug. They ...