Add symlink tests

Track how symlinks work in the build graph with "stat" today. These will
be updated in the next change that switches to lstat.

Test: run ninja_tests (the build-tools build does this)
Change-Id: Ic1674bef202c198b6c707fc8a36edc2d89c27ee7
3 files changed