Unbreak lock conflict detection for Hot Standby.
Unbreak lock conflict detection for Hot Standby.

This got broken in the original fast-path locking patch, because
I failed to account for the fact that Hot Standby startup process
might take a strong relation lock on a relation in a database to
which it is not bound, and confused MyDatabaseId with the database
ID of the relation being locked.

Report and diagnosis by Andres Freund.  Final form of patch by me.

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