This may be the last Mnesia restart before we boot, so let's make sure the tables are there.
Only wait for tables once local upgrades are over, not mnesia ones.
No, that broke upgrades on RAM nodes. Third time's the charm...
Merge bug25563