graphqlbackend: Pass RepositoryRevisions by reference
Created by: tsenart
This commit is a follow up to #5137 that prevents other possible race
conditions that could occur when concurrently copying (i.e. reading) the
search.RepositoryRevisions
struct that has its IndexedHEADCommit
concurrently hydrated.