Fix for stuck notes resulting from reception of panic button or MIDI all-notes-off

Fix for stuck notes resulting from reception of panic button or
MIDI all-notes-off when more than one note is active (note-off
not yet received) when in legato or mono mode.