ISPN-2873 Provide correct global transaction when batching is enabled