There is the issue with setting 'autocommit' to already released connection, when DELAYED_ACQUISITION_AND_RELEASE_AFTER_TRANSACTION is used.
See method in LogicalConnectionManagedImpl:
Connection is released in afterTransaction() and then resetConnection() is called.
Could be related to (will be fixed in 5.2.3).
Do you have hibernate.transaction.coordinator_class set appropriately?