Fix assertion failure by an immediate shutdown.
Fix assertion failure by an immediate shutdown.

In PM_WAIT_DEAD_END state, checkpointer process must be dead already.
But an immediate shutdown could make postmaster's state machine
transition to PM_WAIT_DEAD_END state even if checkpointer process is
still running,  and which caused assertion failure. This bug was introduced
in commit 457d6cf049c57cabe9b46ea13f26138040a214ec.

This patch ensures that postmaster's state machine doesn't transition to
PM_WAIT_DEAD_END state in an immediate shutdown while checkpointer
process is running.

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