os_fchown: impl and remove HAVE_FCHOWN
os_fchown: add unit tests