You've gone a bit overboard with this ;).

This should be enough:
```ruby
def klasses
  Thread.current[:no_touching_classes] ||= []
end
```