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

See #129 for rationale.
Good catch -- I've updated 'transaction.py' / 'test_transaction.py' as well.