Fix cut'n'paste error: leave the CriticalSection not enter it again