Fix for caching of denotsNamed.
Fix for caching of denotsNamed.

The problematic scenario is when a member is looked up between the point where a class is provisionally completed with Nil as parents and a class is finally completed. In that case we might miss a parent ref, which should then not entered in the cache.

sjrd/dotty,sjrd/dotty,dotty-staging/dotty,dotty-staging/dotty,sjrd/dotty,som-snytt/dotty,vsalvis/dotty,angi2/dotty,AlexSikia/dotty,som-snytt/dotty,densh/dotty,sjrd/dotty,sjrd/dotty,som-snytt/dotty,DarkDimius/dotty,AlexSikia/dotty,auvik/dotty,auvik/dotty,yusuke2255/dotty,densh/dotty,yusuke2255/dotty,svalaskevicius/dotty,folone/dotty,reactormonk/dotty,lampepfl/dotty,spetz911/dotty,lampepfl/dotty,spetz911/dotty,som-snytt/dotty,lampepfl/dotty,lampepfl/dotty,dotty-staging/dotty,folone/dotty,angi2/dotty,lampepfl/dotty,vsalvis/dotty,dotty-staging/dotty,VladimirNik/dotty,VladimirNik/dotty,dotty-staging/dotty,som-snytt/dotty,svalaskevicius/dotty,reactormonk/dotty