v.21.3Bug Fix

Fix thread usage for scalar subqueries and index subqueries

Fix the number of threads for scalar subqueries and subqueries for index (after #19007 single thread was always used). Fixes #20457, #20512. #20550 (Nikolai Kochetov).