[jit] Rewrite lookup_method () to reduce contention by not taking the loader lock while doing hashtable lookups.