Add checks to prevent various classes being used from multi-threaded worker contexts