[Bug 29076] Critical section deadlock occurs when windows application receives SIGINT during reading from stdin