collection: add mongoc_collection_validate().