Second attempt at fixing transaction use-after-free
Second attempt at fixing transaction use-after-free

The solution used in 073ac425d5bf6f6393eb91d9b5f84e3caa68f511 doesn't
work in all cases because the freed instruction might be ahead in the
list, not necessarily behind.

The new solution delays running the queue until after the loop has
finished iterating, thus avoiding the problem completely.

1ace/sway,SirCmpwn/sway,ascent12/sway,ascent12/sway,taiyu-len/sway,taiyu-len/sway,1ace/sway,1ace/sway,taiyu-len/sway,ascent12/sway