Fix behavior of inlined NDirect methods with MulticoreJit (#55185)
* Disable loading of methods from r2r images in MulticoreJit thread, if they have NDirect methods inlined in them
NDirect methods can be inlined in other methods during aot compilation.
If such method is loaded in mcj thread, it results in NDirect method being loaded.
Additionally, there's no way to control inlining during aot from runtime side, because r2r ni.dll might already exist.
In order to fix this, runtime aborts loading if method has NDirect methods inlined in it and this all happens in mcj thread.
* Forbid inlining of pinvoke methods with SuppressGCTransitionAttribute in MulticoreJit thread