database: use mongoc_remove_flags_t.