Merge "Fix pthread_attr_getstack__main_thread failure on glibc."