core: Flush z_datamodel after managing new categories

Otherwise managed predicates fail directly after.