HHH-9231 Avoid updating collection 2LC if contains entity added in tx

(cherry picked from commit 3b098a94d3463086a230d6dbc1254e9ecbf76cda)

Conflicts:
	hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/BasicTransactionalTestCase.java
HHH-9231 : Avoid updating collection 2LC if contains entity added in tx
HHH-9231 : Uncommitted data can remain in transactional collection cache after rollback if collection is initialized after flush