Fix broken streams in output file.

We were not reading the stlink buffer fast enough, which explains my odd
broken sync problems.  USB sniffing with wireshark implies that stlink
doesn't provide any indication in the response that it noticed an
overflow.  :(