Guard against infinite recursion in _is_metaclass.
Guard against infinite recursion in _is_metaclass.

Unfortunately, I wasn't able to boil this down to a small-enough reproduction case, since
the case that I had depended on conditional imports.

PyCQA/astroid