os: disable the use of netpoll on regular files on *BSDs.
os: disable the use of netpoll on regular files on *BSDs.

The kqueue based netpoller always registers file descriptors with EVFILT_READ and EVFILT_WRITE.
However only EVFILT_READ notification is supported for regular files.
On FreeBSD a regular file is always reported as ready for writing, resulting in a busy wait.
On Darwin, Dragonfly, NetBSD and OpenBSD, a regular file is reported as ready for both reading and writing only once.

Updates #19093

Change-Id: If284341f60c6c2332fb5499637d4cfa7a4e26b7b
Reviewed-on: https://go-review.googlesource.com/c/156379
Run-TryBot: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

akutz/go,nawawi/go,nawawi/go,CAFxX/go,golang/go,cloudflare/go,akutz/go,josharian/go,nawawi/go,nawawi/go,akutz/go,akutz/go,CAFxX/go,golang/go,cloudflare/go,josharian/go,cloudflare/go,josharian/go,CAFxX/go,cloudflare/go,josharian/go,akutz/go,golang/go,golang/go,CAFxX/go,cloudflare/go,nawawi/go,akutz/go,golang/go,nawawi/go,akutz/go,golang/go,CAFxX/go,golang/go,CAFxX/go,golang/go,cloudflare/go,CAFxX/go,josharian/go,akutz/go,nawawi/go,josharian/go,cloudflare/go,nawawi/go,josharian/go,cloudflare/go,josharian/go,CAFxX/go