Merge "Fix pthread_create error check."