Follow WFLY-5180.
JBEAP-971 Fix issues in tests with Security Manager
WFLY-5180 Creating cache from user code needs to execute in a privileged block