glib/gutf8: use ifunc to check for valgrind
This attempts to use GCC attribute((ifunc("resolver_func"))) to check for valgrind early in the process startup so that the proper function is dispatched instead of runtime checks within the function.
This should make #3493 less annoying when run under Valgrind.