cache-tree: protect against "git prune".