Core/RBAC: Allow setting different default security level roles to different realms

(cherry picked from commit c79af3f16f84d0d26bd69b5d06dd8754643ddc7f)