Include xlocale.h only if it exists

NetBSD does not have `xlocale.h`.

Note that I did not update `configure` and `cbits/config.h.in` since there are many differences between original files and those I generated by autoreconf.

After the fix and `autoreconf`, all tests passed on NetBSD.