enhance raw_svector_ostream::write_impl to work with unbuffered streams,