This is the additional patch to fix the bug 3598637 for the master
branch.  This patch corrects the lock to release, as well as
restoring memory context at error.

	modified:   src/gtm/main/gtm_txn.c