Fix: cancelation sometimes causes crash

A CancelAction may unlink itself from it's entry in an intrusive
list. Thus iterating through this list while executing these
actions must take care of it.