initial multithreaded cmssw support functiona;, controlled using cmssw_thread parameter