remove async_write from serialport.cpp but add write with timeout