sound: OSS: keep index within bounds of midi_devs[]