Moved up lock on stopping audio drivers. Was segfaulting in Sampler and Note.
On exit, Hydrogen would sometimes segfault with one of the following:
hydrogen: libs/hydrogen/src/sampler/sampler.cpp:91: void H2Core::Sampler::process(uint32_t, H2Core::Song*): Assertion `audio_output' failed.
hydrogen: libs/hydrogen/src/note.cpp:107: void H2Core::Note::set_instrument(H2Core::Instrument*): Assertion `instrument->get_adsr()' failed.
This could sometimes be forced by playing a lot of notes and exiting
while playing (note.cpp), but the assert in sampler.cpp would happen
under any circumstances.
Backported from jackMidi branch.