WFLY-3587: removes the need for infinispan module when creating security...

... domains without a cache of type infinispan.

Also removing dependency on Transaction subsystem class.

These changes are needed to have security subsystem working on web-build, without Infinispan and Transactions subsystems.


Just moved the code from https://github.com/wildfly/wildfly/pull/6481/files#diff-4cf984342171add3e5d6a5259c849d92L283 , IMHO that should be fixed in a separated JIRA