Linear queries for `UpdateAllMirrorsWorker#pull_mirrors_batch`

Method UpdateAllMirrorsWorker#pull_mirrors_batch use recursive version of roots. We can replace those with the linear version.