Issue #17248: Fix os.*chown() testing when user has group root.