avoid adding duplicates into transaction sycnhronization container to protect from concurrent modification exceptions

(cherry picked from commit b700868b73146e40335c8f82e2574f287440ff12)