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

because I'm not sure that the JTA spec guarantees that there must always be 1tx/thread. If that is the case, then these are not needed, because only 1 listener will get to process these functions/thread.
However, if it's not guaranteed, in theory it can happen that the same ISPN listener (serving 1 tx) can be called from multiple threads.