The solution is as stated here: run the 5209 -> 5210 upgrade step in portal_setup manually and not through portal_migration
Plone Foundation Code of Conduct