Wait for new config to be applied after changing replica set config