Windows 10 Thread stuck