Fixed handling of transactions in multi-thread env