stream: use sendmsg() instead of writev().

writev() will get delivered SIGPIPE on errors from the other side of a
socket, so use sendmsg() variant of send() to avoid that.