Don't try to use a unopened relation
Don't try to use a unopened relation

Commit 4c9d0901 mistakenly introduced a call to
TransferPredicateLocksToHeapRelation() on an index relation that had
been closed a few lines above.  Moving up an index_open() call that's
below is enough to fix the problem.

Discovered by me while testing an unrelated patch.

kmjungersen/PostgresXL,postmind-net/postgres-xl,kmjungersen/PostgresXL,snaga/postgres-xl,postmind-net/postgres-xl,arcivanov/postgres-xl,kmjungersen/PostgresXL,kmjungersen/PostgresXL,arcivanov/postgres-xl,arcivanov/postgres-xl,postmind-net/postgres-xl,snaga/postgres-xl,arcivanov/postgres-xl,kmjungersen/PostgresXL,arcivanov/postgres-xl,postmind-net/postgres-xl,arcivanov/postgres-xl,snaga/postgres-xl,snaga/postgres-xl,postmind-net/postgres-xl,snaga/postgres-xl