Initialize cached OID to Invalid in new hash entries

Andres Freund; bug detected by valgrind