sandbox,posix: use introspection to iterate file descriptors
sandbox,posix: use introspection to iterate file descriptors

We previously iterated on every file descriptor between 0 and the fd
rlimit, which caused a very noticeable slowdown on some platforms.

See Snaipe/Criterion#248.

diacritic/BoxFort,diacritic/BoxFort,Snaipe/BoxFort,diacritic/BoxFort,Snaipe/BoxFort,Snaipe/BoxFort,diacritic/BoxFort,Snaipe/BoxFort