Piotr Caban : msvcrt: Close thread handle when _beginthread is used.