[Bug 11339] New: serial.c:wait_on() sanity checks seem to be too strict