`EE::Ci::RetryBuildService` causes `CrossDatabaseModificationAcrossUnsupportedTablesError` due to `dast_site_profile` and `dast_scanner_profile`

Very similar to: #345668 (closed).

The #clone! fails on this test since we try to insert dast_site_profiles_builds and dast_scanner_profile_builds as the insert into cross-join table is being executed in the Ci::Build transaction.

      context 'dast' do
        let(:dast_site_profile) { create(:dast_site_profile, project: project) }
        let(:dast_scanner_profile) { create(:dast_scanner_profile, project: project) }

        before do
          build.update!(dast_site_profile: dast_site_profile, dast_scanner_profile: dast_scanner_profile)
        end

        it 'clones the profile associations', :aggregate_failures do
          expect(new_build.dast_site_profile).to eq(dast_site_profile)
          expect(new_build.dast_scanner_profile).to eq(dast_scanner_profile)
        end
      end

This failure was discovered now since the #345668 (closed) was fixed and another clone accessor was executed.

Edited by Kamil Trzciński