It's still needed to hold the exit lock. Older versions of msvcrt
were
doing it (I didn't test if newer versions are still using this lock).
Thanks, I'll have an updated version soon. Though I don't see a good way to write a test for this lock.
Regards, Fabian Maurer