Fix find_primary_node() so that it judges primary node correctly.
Fix find_primary_node() so that it judges primary node correctly.

Remove pgpool_walrecrunning() from find_primary_node() and
add find_primary_node_repeatedly() that waits until finding primary node.

The reason for removing pgpool_walrecrunning() is that
"pg_is_in_recovery() AND pgpool_walrecrunning()" cannot judge
primary node and standby node correctly.

treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres