SERVER-13948 improve stability of replsettest.awaitReplication() while getting the config version from master
(cherry picked from commit 2332856f030fb5cbea19ae2b146b3f21b21faa11)