serial: Add serial_timeout().

This calculates a proper timeout value for blocking writes on the
given serial port, for the given number of bytes. Timeout is based
on a fixed 10ms OS overhead, baud rate, data bits and stop bits.
atten-pps3xxx: Use serial_timeout().
usb: Simplify usb_get_port_path() and fix writing into a const char *.