veyron/runtimes/google/ipc: Modify collection of stats to more accurating
collect blessings cache hit information.

This is dependent on https://vanadium-review.googlesource.com/#/c/1500/.

Change-Id: Id550951e8ee3b60064d058481e023f42ebecc173
diff --git a/runtimes/google/ipc/blessings_cache.go b/runtimes/google/ipc/blessings_cache.go
index effa8e8..51cbc33 100644
--- a/runtimes/google/ipc/blessings_cache.go
+++ b/runtimes/google/ipc/blessings_cache.go
@@ -131,6 +131,8 @@
 		stats.recordBlessingCache(true)
 		return cached, nil
 	}
+	// Always count the slow path as a cache miss since we do not get the benefit of sending only the cache key.
+	stats.recordBlessingCache(false)
 	// Slowpath, might need to update the cache, or check that the received blessings are
 	// the same as what's in the cache.
 	recv, err := security.NewBlessings(*req.Blessings)
@@ -144,10 +146,8 @@
 		if !reflect.DeepEqual(cached, recv) {
 			return nil, fmt.Errorf("client sent invalid Blessings")
 		}
-		stats.recordBlessingCache(true)
 		return cached, nil
 	}
 	c.m[req.Key] = recv
-	stats.recordBlessingCache(false)
 	return recv, nil
 }