MDEV-6788: The variable 'role' is being used without being initialized at sql_acl.cc:8840

[re-commit in git]
Second variant of the fix: reduce the scope of 'role' variable