Otherwise LGTM. Note that it's possible for the wait to be blocked forever, if the notify thread is calling a blocking `DriverCallback` while being notified to quit, only if a client function was provided through `midiOutOpen` / `midiInOpen`, but at least we never seem to do that in our code and there's so reason to assume these callbacks would block.