diff-lib, read-tree, unpack-trees: mark cache_entry array paramters const