update mongoc-stream.c from upstream changes