gh-155717: skip `TMPDIR` writeability test if process user is root (#155891)