[libc][math] Fix `cospif16` error handling (#236371) Follow up of https://github.com/llvm/llvm-project/pull/235780, tested `cospif16` with CORE-MATH's exhaustive checker in all four rounding modes. With `CORE_MATH_SUPPORT_ERRNO` and `CORE_MATH_CHECK_INEXACT` enabled. GitOrigin-RevId: fa5a303d355e597238da125155df4d9b0dc497a7