Register cache invalidation callback before version checks
Register cache invalidation callback before version checks

With this commit we start to register InvalidateDistRelationCacheCallback
function as cache invalidation callback function before version checks
because during version checks we use cache to look up relation ids of some
relations like pg_dist_relation or pg_dist_partition_logical_relid_index
and we want to know about cache invalidation before accessing them.

citusdata/citus,citusdata/citus,citusdata/citus,citusdata/citus,citusdata/citus