Run paginated queries in SetClonedRepos
Created by: asdine
This PR modifies the SetClonedRepos method to use the same query as before but on 400k repos pages.
On Cloud, this means running about 4 queries (~around 1.3M cloned repos). This should fix the pq: temporary file size exceeds temp_file_limit
error by reducing the number of temporary files.
Fixes #14431