docs: Document that TMP/TEMP/USERPROFILE are consulted for temporary directory on windows
It confused me that the TMPDIR variable worked on windows but not on
linux. Our implementation relies on the directory implementation of
getTemporaryDirectory
which consults these variables so I have
reflected that in our documentation.
Fixes #23348