Correct calculation of max_fd after fd_del().