This sets the cached class as a constant on the original record class so ActiveRecord can marshal these associations (which it does in tests).

In the example I've given, this'll stick the cached extend class in `User::AR_CACHED_EXTEND_CLASS_widgets_SomeModule`.