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