Could implementing the classloader approach be achieved by running two separate subsystems in WildFly, as I understand it that would leverage the classloader isolation provided by jboss modules?
It might mean binding something new into JNDI in order that MSC can get a reference to an AtomicAction "factory"/similar but that should be possible.