minor: fixing race condition in replica set test harness