build: enable nothreads workaround only with WAF_NOTHREADS=1