This was inspired by D27016 / enables a better version of that change.
fdcopy_remapped / fdescfree_remapped are only used by CloudABI-exclusive
routines, so I did not bother to mirror those in this change, under the
assumption that CloudABI is dead.
Corresponding `lsof` patch: https://reviews.freebsd.org/P456