Add "Thread" support to request_task

When selecting a task for a worker take care that
the worker's concurrency is not lower than needed
threads.