fix alignment of pthread_attr_t

Closes #10300