fix memory leak destroying mongoc_buffer