Add deduplication to SynScanPoliciesWorker

What does this MR do and why?

This change adds deduplication to SynScanPoliciesWorker to stop parallel execution of the jobs. This worker triggers a lot of downstream jobs, so we must deduplicate until it is executed to reduce the cascading impacts.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to gitlab-com/gl-infra/production-engineering#25845 (closed)

Merge request reports

Loading