There's a very hacky bit, let's fix it:
if (rtt_msec >= 0) { /* If the scanner failed to create a socket for this server, that means * we're in scanner_start, which means we're under the mutex. So don't * take the mutex for rtt < 0 */ mongoc_mutex_lock (&topology->mutex); }