[bp/r48428] [FIX] Massive performance issue with category jail since permissions were checked on all categories (Since this can bring a big/complex site to utter slowness and it breaks listings of PluginListPages, I am backporting even if no other 10.x releases are planned)

git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/10.x@48431 b456876b-0849-0410-b77d-98878d47e9d5