Merge pull request #2493 from ludovic-henry/monoerror-mono_thread_attach_full