Use __libc_pthread_init instead of __register_pthread_fork_handler.