Don't fail in TcpStream.flush
auto merge of #9114 : sfackler/rust/flush-fix, r=brson