Weird, I've just ran https://github.com/rvansa/hibernate-orm/commits/HHH-10163_5.0 against WF master (f65108b847e9366cfbcf37299b0fea7760881760) with ORM version set to 5.0.4-SNAPSHOT (directly in root pom.xml) and had no issues:
Running org.jboss.as.test.integration.jpa.secondlevelcache.JPA2LCTestCase Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.184 sec - in org.jboss.as.test.integration.jpa.secondlevelcache.JPA2LCTestCase
mvn dependency:tree looks like the 5.0.4-SNAPSHOT version has been used, so unless I miss something, it's using my version.