fix fs.walk with symlink/sockfiles, add max try in sync.rm