Each pthread_attr_init should be followed by pthread_attr_destroy

If man page says so, let's do it the right way.