avpops: create a local pv structure when parameter is only flags

- flags details are stored inside it
- fixes crash at startup reported by Kevin Scott Adams, FS#381
tm: reset temporary linking of reply to transaction after branch failure route execution

- reported by Robert Boisvert, FS#379