Windows: avoid cases with the message queue over peeked.