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