Get rid of all remaining users of ERRNO_TO_ERROR() in osl.c.