backpatched canceltimer bug reported by Andri-Redko