Revert "make sure we don't launch the query distribution thread if configured to run unthreaded"

This reverts commit 16207ec6ba9c8710635e80236e2a3f30dd77face.
fix include that breaks make dist