[PATCH 5.10 125/252] perf jevents: Fix getting maximum number of fds