This reverts commit 826fc21abf. The code was intentional. Holding the lock while notifying is unnecessary. Also change the code to use `drop` so clippy doesn't confuse people against their will.
826fc21abf