Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can
chown() to root under certain circumstances.