Please, backport fix for https://issues.jboss.org/browse/JBTM-2287 to 4.17 branch to be part of JBoss EAP 6.4 release. I've took the scenario and put it to our recovery testsuite to confirm that this issue exists in EAP 6.4.0 as well (tested for DR11, 4.17.24.Final) The other reason for adding this to 6.4.0 is one-off patch BZ1166754 that goes to 6.2.4.CP release. Fix for JBTM-2287 is part of the oneoff and because of it it should be part of 6.4.0.GA as well.
PR: https://github.com/jbosstm/narayana/pull/788
Updated PR: https://github.com/jbosstm/narayana/pull/789
Verified.