Move pg_upgrade_support global variables to their own include file

Previously their declarations were spread around to avoid accidental
access.