This feature is accomplished by instantiating the class and storing the
instance as a thread local keyed by the class name. In the example above a
key “ActiveRecord::RuntimeRegistry” is stored in
Thread.current. The class methods proxy to said thread local
instance.