Make cleaner threads.h compile for the NOTHREADS case

Hopefully fixes #737