[SYCL][NVPTX][AMDGPU] Use __builtin_nearbyint in cmath wrapper (#21971)
Instead of using `__nv_nearbyint` and `__ocml_nearbyint` from device
libraries, use `__builtin_nearbyint` in the cmath wrapper. Both targets
have native support for nearbyint so we don't need to call out to the
device library. Both CUDA and HIP compilation already does this in
`__clang_{cuda,hip}_math.h`. We can then also remove `SYCL_EXTERNAL` use
from this header, to fix #21652.
Fixes #21652.