test: only detect uname on supported os
To skip some tests on IBMi PASE, we use uname
to detect the true os name, but
on Windows machines there is no uname
available.
This fix the issue in #31967
Tested on Windows, Mac OS and IBM i PASE. May need AIX test as well.