Fix fast admin counters not working when PostgreSQL has secondaries Closes #46742 See merge request gitlab-org/gitlab-ce!19154