internal/poll: do not call SetFileCompletionNotificationModes if it is broken
internal/poll: do not call SetFileCompletionNotificationModes if it is broken

Current code assumes that SetFileCompletionNotificationModes
is safe to call even if we know that it is not safe to use
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS flag. It appears (see issue #22149),
SetFileCompletionNotificationModes crashes when we call it without
FILE_SKIP_COMPLETION_PORT_ON_SUCCESS flag.

Do not call SetFileCompletionNotificationModes in that situation.
We are allowed to do that, because SetFileCompletionNotificationModes
is just an optimisation.

Fixes #22149

Change-Id: I0ad3aff4eabd8c27739417a62c286b1819ae166a
Reviewed-on: https://go-review.googlesource.com/69870
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

codestation/go,cloudflare/go,CAFxX/go,golang/go,Cofyc/go,polyverse-security/go,polyverse-security/go,codestation/go,CAFxX/go,codestation/go,Cofyc/go,nawawi/go,josharian/go,akutz/go,cloudflare/go,christopher-henderson/Go,CAFxX/go,Cofyc/go,polyverse-security/go,akutz/go,josharian/go,nawawi/go,akutz/go,nawawi/go,golang/go,polyverse-security/go,CAFxX/go,nawawi/go,polyverse-security/go,CAFxX/go,akutz/go,cloudflare/go,polyverse-security/go,Cofyc/go,akutz/go,Cofyc/go,josharian/go,codestation/go,golang/go,nawawi/go,codestation/go,josharian/go,nawawi/go,polyverse-security/go,polyverse-security/go,cloudflare/go,cloudflare/go,CAFxX/go,codestation/go,golang/go,josharian/go,cloudflare/go,golang/go,golang/go,josharian/go,CAFxX/go,akutz/go,codestation/go,CAFxX/go,josharian/go,cloudflare/go,Cofyc/go,cloudflare/go,golang/go,akutz/go,nawawi/go,akutz/go,Cofyc/go,Cofyc/go,codestation/go,nawawi/go,golang/go,josharian/go