bpo-25750: fix refcounts in type_getattro() (GH-6118) (GH-9091)

When calling tp_descr_get(self, obj, type), make sure that
we own a strong reference to "self".

(cherry picked from commit 8f735485acf2e35a75d2fa019feb8f905598c4e5)
2 files changed