tm: extra checks to see if the transaction was canceled before forwarding branches

- catch cases when CANCEL arrives during branch_route execution
- reported  Sławomir Bocheński, FS#468