io: add chown

Unfortunately it's not possible to test the happy path: only superusers
can call chown.