[sanitizer] make real_pthread_attr_getstack extern "C"