Merge pull request #3559 from hathach/fix-fsdev-midi-host-bugs

Fix bugs in FSDEV HCD/DCD and MIDI host stream write