tm: reset T if t_continue() resumes a canceled transaction
- when the suspended transaction was already canceled, and t_continue
was executed before transaction was destroyed, global variable T was
left set, causing an extra unref by post script callback
(cherry picked from commit 00193f5e1f0e9e12b55c50d33eaf6f3d32e8bb92)