stream: account _SC_IOV_MAX

Write no more than `sysconf(_SC_IOV_MAX)` chunks with `writev()` at
once, otherwise `writev()` returns EINVAL.