MODE-2353 Fixed the Infinispan tx listener in case multiple writer threads are active

Why this second `if` block? Isn't it the same as the prior block?