[misc] Fix a comment
[misc] Add unchecked annotation for remove unneeded warnings
XWIKI-8931: Support global user in local group in the new security authorization module

 - update UserBridge to support search in another wiki than the user wiki
 - update UserSecurityReference to distinct global and local users/group
[misc] Code style, minor optimization