A Certifiable Security Patch for Object Tracking in Self-Driving Systems via Historical Deviation Modeling