Repo sync fails after a first app restart on new installation of Foreman 2.4 / Katello 4.0

Testing " [Fixes #32475 - clean_backend_objects still uses Pulp 2]" + “foreman-installer --reset-data” solution.

Simmilar issue on Tasks stuck with "waiting for Pulp to start the task" - foreman-2.4 / Katello 4.0.0 / Pulp3