Avoid an infinite recursion in `StateMonitor.__getattr__`