[Ide] Some speed/memory improvements in find all references.
Also a little concurrent bug fix.