Add some sleep while reading from the serial port to allow task switching by the VM on single core devices.