mscoree: Always call mono_thread_attach before invoking managed code.