fix memory leak on legacy fallback in mongoc_collection_get_index_info