fix RI-37 missing check for expiry when computing hit/misses in RICache.invoke