fix warning, update lists:foreach({erlang,cancel_timer}, [])

Since {M,F,A} style is not supported in lists:foreach any more, would you mide to upgrade it?