configure: Distinguish glibc and NetBSD pthread_setname_np() variants.