Fix another hashtree bug in restore causing "removenode: non-empty directory"