Make statics thread local in TrackingTools/TrajectoryFiltering

For thread safety make statics thread local.