We need to set p.conns = nil here, for which we need the mutex. Since we have to acquire it anyways, there's not much point in calling getConns.