fix and improve mdbq::Client::get_best_task()