Corrects deadlock for CoreAudio when closing renderer and capture streams.