pthread_setname_np() can only set the name of the current thread on macOS, so only pass a single name argument. Fixes build break on macOS 12.2 with _GNU_SOURCE defined.