disable thread support in ASIO to avoid unexpected ./configure failure.

queryperf++ itself doesn't need thread support inside ASIO, so
functionality-wise it doesn't matter.
check thread availability sooner.  this will help avoid ./configure failure.