trans: cache transaction reply flags to make processing bulletproof against callback which can change cmd->flags