dfu-cmd.c: fix interface flushing
dfu-cmd.c: fix interface flushing

Flush interface before sending out a command and when an event is detected
and no input chars are expected.

ciminaghi/libdfu,ciminaghi/libdfu,ciminaghi/libdfu