praefect: add missing primaries check
Add a check to count the number of repositories that have a missing primary. If there are over 10%, this check will fail.
This uses the same query that the datastore collector uses for metrics to find repositories that don't have a valid primary associated with it.
Edited by John Cai