Only pass follow_symlinks=False if supported

Python's docs are extremely confusing on the matter, but passing
False is only supported on some platforms, and will fail on
others. We need to check if the argument is allowed before passing
it:
https://docs.python.org/3/library/os.html#os.supports_follow_symlinks.

Bug: 450551220
Change-Id: I1d47ad026da4a07f7d7c9d7d92285836b284a22f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7062894
Commit-Queue: Devon Loehr <dloehr@google.com>
Auto-Submit: Devon Loehr <dloehr@google.com>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Arthur Eubanks <aeubanks@google.com>
Cr-Commit-Position: refs/heads/main@{#1532586}
NOKEYCHECK=True
GitOrigin-RevId: 20c4a12127786f960c903a0abfb66a8ec8c34777
1 file changed