SERVER-8515 avoid memory corruption by checking max file descriptor limit