Restore frozenset hash caching removed in cf707dd190a9
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 24424ad..0a065cc 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -763,6 +763,9 @@
     Py_uhash_t hash = 1927868237UL;
     setentry *entry;
 
+    if (so->hash != -1)
+        return so->hash;
+
     /* Initial dispersion based on the number of active entries */
     hash *= (Py_uhash_t)PySet_GET_SIZE(self) + 1;