tbstack: fix missing update of attached_tid