Revert "Revert "Wrap accesses to the fd_sets in struct fdtable""

This reverts commit bd0033aa831a715ea3267080467bb5856b7dd5c9.