WinTLS: Fix busy loop on EOF

Fixes gh#277