Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry