Fix bug in threaded queue when running with multi-threading disabled.
Thread::Queue: minor cosmetic changes