Fix threading problem with JetIDHelper

Changed static sanity_checks_left_ from int to std::atomic<int> to fix threading problems.