Locking, threads, notification and race conditions

I think it suffers from the same race condition between the time you drop the lock and the time you wait… :frowning: