Per-thread transaction needs to be shared with worker threads when pipelining.