You have to enclose this line in `else { ... }`.
There might be more than one thread waiting for this mutex.