stream: use `uv_write2` instead of `uv_write`