Fix checkpointer crash in EXEC_BACKEND builds.
Fix checkpointer crash in EXEC_BACKEND builds.

Nothing in the checkpointer calls InitXLOGAccess(), so WALInsertLocks
never got initialized there.  Without EXEC_BACKEND, it works anyway
because the correct value is inherited from the postmaster, but
with EXEC_BACKEND we've got a problem.  The problem appears to have
been introduced by commit 68a2e52bbaf98f136a96b3a0d734ca52ca440a95.

To fix, move the relevant initialization steps from InitXLOGAccess()
to XLOGShmemInit(), making this more parallel to what we do
elsewhere.

Amit Kapila

ashwinstar/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb,50wu/gpdb,techdragon/Postgres-XL,techdragon/Postgres-XL,xinzweb/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,adam8157/gpdb,yazun/postgres-xl,ashwinstar/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,adam8157/gpdb,50wu/gpdb,oberstet/postgres-xl,lisakowen/gpdb,adam8157/gpdb,zeroae/postgres-xl,pavanvd/postgres-xl,xinzweb/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,adam8157/gpdb,greenplum-db/gpdb,yazun/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,yazun/postgres-xl,ovr/postgres-xl,jmcatamney/gpdb,oberstet/postgres-xl,50wu/gpdb,jmcatamney/gpdb,lisakowen/gpdb,zeroae/postgres-xl,ovr/postgres-xl,oberstet/postgres-xl,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,zeroae/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,adam8157/gpdb,pavanvd/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,lisakowen/gpdb,greenplum-db/gpdb,xinzweb/gpdb,ashwinstar/gpdb,ovr/postgres-xl,50wu/gpdb,pavanvd/postgres-xl,adam8157/gpdb,xinzweb/gpdb,zeroae/postgres-xl,50wu/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,50wu/gpdb,lisakowen/gpdb,lisakowen/gpdb,ashwinstar/gpdb,adam8157/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,lisakowen/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,50wu/gpdb,50wu/gpdb,greenplum-db/gpdb,adam8157/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,yazun/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb