WFLY-3674 add extension for non-transactional entity manager invocations to defer entity detachment until persistence context is closed.

This should also help users migrating from older versions of JBoss application server (AS 5.x/6.x)