Piotr Caban : msvcrt: Use fd critical section in dup2.