@johnwick, I managed to get through the upgrade by temporarily turning off foreign_key_check and running the stalling SQL queries manually via PHPMyAdmin (or whatever you use):
SET foreign_key_checks = 0;
– run some queries
SET foreign_key_checks = 1;