Consistently notify before releasing the lock.