Fix deadlock condition between TrackManager and MidiView listener