isSymlink requires lstat.