Merge "Made JobQueueDB::doWaitForBackups wait for the right slaves"