Add pthread_create test code