CancelStateTracker: Add clear() method for internal use.