C 1.45_02: fix my_curse with 5.8

no SvOOK(stash)
no CvISXSUB flag, just check the xsub ptr
no SvDESTROYABLE, always 1
no MUTABLE_SV macro, just cast
t/test.pl: "my" variable $b masks earlier declaration in same scope

just reuse it