Add a wait_for_catchup() before immediate stop of a test
Per buildfarm member hoverfly, a slow walsender could make the test
fail. Back-patch to v10, where the test was introduced.
Discussion: https://postgr.es/m/
20200414013849.GA886648@rfd.leadboat.com