Prevent linking policy projects that are already marked for deletion

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

When a user attempts to link a project that is already marked for deletion as a security policy project, we should reject that operation and respond with an error message from both UI and API.

Additional context: !177827 (comment 2299780846)

Edited by 🤖 GitLab Bot 🤖