* threads.h: fix various preprocessor usages of new public