Fix gp_pgdatabase__ function by including walrep state 'n'.
Fix gp_pgdatabase__ function by including walrep state 'n'.

As part of commit efed2fccaad4c5c8e3ad99b6e7479cc944bca621 new walrep state was
added 'n' (not-in-sync). The toolkit function gp_pgdatabase__() needs to be
modified as well to check for that state.

Original code not using #defines but direct characters like 's', 'c' makes it
very tricky find stuff in code. Hopefully, future chnages would be easy to spot
and make.

greenplum-db/gpdb,ashwinstar/gpdb,edespino/gpdb,Chibin/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,lisakowen/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,edespino/gpdb,adam8157/gpdb,50wu/gpdb,yuanzhao/gpdb,50wu/gpdb,Chibin/gpdb,yuanzhao/gpdb,adam8157/gpdb,Chibin/gpdb,jmcatamney/gpdb,Chibin/gpdb,Chibin/gpdb,yuanzhao/gpdb,adam8157/gpdb,lisakowen/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,edespino/gpdb,jmcatamney/gpdb,lisakowen/gpdb,lisakowen/gpdb,yuanzhao/gpdb,adam8157/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,xinzweb/gpdb,50wu/gpdb,adam8157/gpdb,greenplum-db/gpdb,edespino/gpdb,greenplum-db/gpdb,xinzweb/gpdb,edespino/gpdb,50wu/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,50wu/gpdb,edespino/gpdb,lisakowen/gpdb,xinzweb/gpdb,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,yuanzhao/gpdb,ashwinstar/gpdb,xinzweb/gpdb,edespino/gpdb,yuanzhao/gpdb,edespino/gpdb,jmcatamney/gpdb,adam8157/gpdb,jmcatamney/gpdb,adam8157/gpdb,yuanzhao/gpdb,Chibin/gpdb,Chibin/gpdb,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,Chibin/gpdb,xinzweb/gpdb,ashwinstar/gpdb,Chibin/gpdb,50wu/gpdb,greenplum-db/gpdb,ashwinstar/gpdb,edespino/gpdb,lisakowen/gpdb,50wu/gpdb,Chibin/gpdb,xinzweb/gpdb,edespino/gpdb,xinzweb/gpdb,jmcatamney/gpdb