Fix race condition and use less memory in mono_lookup_icall_symbol. (#14532)