CSPACE-5988: Fix for concurrency issues caused by refObjs queries.