hash: check rwlock_init return code
hash: keep track of replaced entries
stats: accounting for in-memory index size