stream: account _SC_IOV_MAX

Write no more than `sysconf(_SC_IOV_MAX)` chunks with `writev()` at
once, otherwise `writev()` returns EINVAL.

https://github.com/joyent/node/pull/5246 depends on it.

/cc @bnoordhuis