Avoid timer cancel deadlock