Declare $wgGroupPermissions global in anon function

Change-Id: If5ed794c02df760a382235031da7ddab1b0ab483
Follows-up: If063a8ffc9