cache-tree.c: fix i-t-a entry skipping directory updates sometimes