Fix #129: use transaction ID from connection's own transaction.

See #129 for rationale.