fix deadlock when updating audio/midi connection matrix during session-close or on exit. (Note: this still can cause a crash if the route goes away while the iterator in the connection-matrix still has an index of it)