Fix broken wait-for-previous-process-to-exit loop in regression test.
Must do pg_stat_clear_snapshot() inside test's loop, or our snapshot of
pg_stat_activity will never change :-(. Thinko in
b3427dade -- evidently
my workstation never really iterated the loop in testing. Per buildfarm.