fd: unify fd range check across the routines
While here annotate out of range as unlikely.
Sponsored by: The FreeBSD Foundation