[libc++] Guard <codecvt> contents on _LIBCPP_HAS_LOCALIZATION (#129112)

The codecvt class is defined in <locale> and the contents of the
<codecvt> header don't work when localization is disabled. Without this
guard, builds with localization disabled that happen to include
<codecvt> could be broken because they would try to include <__locale>,
which ends up trying to include the locale base API and eventually
platform headers like <xlocale.h> that may not exist.

GitOrigin-RevId: fda7373daf5790833101c504be1c749bbb0fceb8
1 file changed