Includes resourceless tasks in locally_pending_tasks count