module ActiveSupport::Dependencies

def self.load_interlock(&block)

block at the same time.
preventing any other thread from being inside a #run_interlock
Execute the supplied block while holding an exclusive lock,
def self.load_interlock(&block)
  interlock.loading(&block)
end