Foreign keys need unique names across the database to support WP Multisite

In a multisite site system, only the first site to be touched after upgrade gets the key names, the others never get them. This commit only fixes the existing code, probably the ALTER TABLE lines need to be replicated into the next upgrade section (3.5.9/3.5.10) as well to ensure that previously upgraded multisite sites also receive these constraints.