Some customer stack traces are showing this thread blocked in `Functions.getRelativeNameFrom`.
This highlights the fact that `Jenkins.getAllItems(Class)` returns a sorted `List`... when all we want is the
size. Better to save GC pressure, remove the excess permission checks and not bother sorting as all we want is a count.