XWIKI-8931: Support global user in local group in the new security authorization module

 - finally fixed and added a unit test, else this will make me mad before the end of the day!