[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, I am backporting even if no other 11.x releases are planned

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