test/io/chown: improve test for uid=-1 and gid=-1

Ensuring that the program doesn't crash, and also that it doesn't change
the owners of the file.