Flatten the call stacks ActiveSupport::Callbacks produces, fix #18011.