Ok so moving from the Realm to JAAS integration would probably not bring you a benefit.
As you are running a self built AS can you try cherry picking the following commit into your branch and repeating your test https://github.com/darranl/jboss-as/commit/7671e50b652c1d521c9746ee639d17a666e5f004