Sleep before counting threads in MonitorRegistryMetricPollerTest