Automatically fixing the Namespaces/Projects mirrors inconsistencies

As a follow up to #351449 (closed) we need the consistency check jobs to automatically fix the consistency mismatches between Namespaces/Projects and their mirror tables.

The consistency check jobs have been implemented here: !81836 (merged)