Avoid symbolic link cycles in FileSystemEntry.visit