posix: set the timeout when writing to the serial port