Find permanent fix to symlink issue

Staging/Prod had troubles with the security scanner symlink directory items again.

See emergency patch: !5924 (merged)

We need to revert this change, because it will damage self-managed if released.

Additionally, we need to find the deeper fix here.

One suggestion during the incident call was to do a more targeted removal of only symlinks.

We need to discuss and find a path forward.

cc @gitlab-org/distribution

cc @twk3 @mendeni @dorrino