[jit] Use the mono_mutex types/functions of CriticalSection's.