sound: rawmidi: fix MIDI device O_APPEND error handling