Allow the usage of symlinks inside keysForTree.

Symlinks can be used internally, so we just need to do `statSync` all the time, no need for the prior symlink following stuff.