[runtime] Reorganize mono_class_setup_events () so most of the work is done outside the loader lock.