[PATCH 4.9 37/66] perf jevents: Fix getting maximum number of fds