GroupDestroyWorker executes more than 100 SQL queries

This worker executes more than 100 SQL queries, the maximum number of queries allowed as per MR !154254 (merged). The number of queries should be reduced to less than 100 and the corresponding whitelisted sections of code (Gitlab::QueryLimiting.disable('...')) should be removed.

See https://gitlab.com/gitlab-org/gitlab/-/pipelines/1307856850 for failing pipeline

Reference: https://docs.gitlab.com/ee/development/database/query_count_limits.html

Edited by Thong Kuah