logilab-astng #49672 fix infinite recursion on Class.getattr [validation pending]

When we have a grandpa ancestor being the class itself, then an infinite recursion on Class.getattr happens

prioritynormal
typebug
done in0.21.0
load1.000
load left0.000
closed by<not specified>