buffer: add some guards.
rpc: add assertions on iov.iov_len.
stream: add more guards to mongo_stream_unix_writev().

Assert all over the place since this can be a source for interesting
errors if it is at all wrong.

Also track written count from return of sendmsg().