Updated threads.h to trigger thread safe useage of fparser