[2.7] bpo-31893: Fixed select.kqueue(). (GH-4166) (#4193)

* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD.
* Fixed the comparison of the kqueue_event objects..
(cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)
2 files changed