Fix leak of pthread attrs in the uhi.