libc: add pthread_attr_getguardsize() for porting CRuby