Make cleaner threads.h compile for the NOTHREADS case