test: use g_thread_try_new()

Because g_thread_create() was deprecated since GLib 2.32.