Fix race in ServerMonitor test