Fix SetClonedRepos
Created by: asdine
The temporary table seems to make the query hang forever whenever we reach about 100k repos in it. This PR uses the previous query as it seems to not have this issue. This will fix the problem while we figure out what was wrong with the current query. Fixes #14938