gh-146205: Check the errno with != 0 in close impls in select module (#146206)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
5 files changed