Add feature to wait for replication to gerrit Slave

JENKINS-19951