locale setting are done with glibc in mind and they cause segfaults with
musl. Therefore make these tweaks specific to glibc
(From OE-Core rev: ec613440e4fb9a9d1f35081654a6d95dee6dc3bd)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>