Set write timeout on serial connection