JBPM-4442 - Complete task in a swimlane does not work - use FlushMode.COMMIT on entity manager for spring to be aligned with non spring persistence context manager