Release the lock in Notification before notifying waiters.

This can avoid a bit of contention, since the first thing that a waiter would
do is try to take the lock.