File descriptor holes breaking findLastSocketFd
During #1428 (closed) review (!952 (comment 168595)) I got a new unit test failure from a hole in the sequence of file descriptors which breaks the findLastSocketFd logic.
To avoid this problem I propose a RAII tool which fills such holes. The RAII should avoid a file descriptor leak.