stream_wrap: use `uv_try_write` where possible