Implement pthread_getattr_np.