bpo-41729: Fix test_winconsole failures (3) and hang (GH-22146)

The problems occured with a repository build on machine
with freshly updated Windows 10 Pro.
(cherry picked from commit 31c9828ec026e5d9b9122d55bf0aa7cb45bfecc5)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 file changed