read-cache: introduce chmod_index_entry