Windows: guard against closing the connection while processing incoming data


Before the patch we could end up using an already deleted
QWinOverlappedIoNotifier instance if the incoming queue has more than
one message, and the user decides to close the connection (and so delete
the notifier) before processing all of them.

This patch adds an explicit check that the QWinOverlappedIoNotifier
instance is still valid.

This commit amends f3a306a30fc4f40d1c96fee0ed44517fe8b43d76

Task-number: QTBUG-101444
Pick-to: 6.4 6.3 6.2 5.15
Change-Id: Ieae622d248629827ed627bc9c17f7b5be491b717
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
commit089f1cd197e93c216aae094ffbca2b4beacf57b8
parentc90b4c82cf14d9fd5914ad3bd70fa5da66cd6335
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 28 Jun 2022 09:35:12 +0200