Restrain scope of pthread_attr_t to within the file