class ActiveSupport::Concurrency::LoadInterlockAwareMonitor

def mon_enter

Enters an exclusive section, but allows dependency loading while blocked
def mon_enter
  mon_try_enter ||
    ActiveSupport::Dependencies.interlock.permit_concurrent_loads { super }
end