Add alternate os::chown taking uid and gid.

Review: https://reviews.apache.org/r/25655