Issue #117: Fix AVAudioSession deactivating when there is running I/O.
Let the event loop run once before delivering the state change notifications so that
the stream can properly close, if needed.