C: fix 5.18 segv with SvSTASH of magic stashes even without OVERLOAD flag

crashes with %Class::MOP::Instance:: flags=0x2280000c also
ALso prevent -DA from failing with read-only $av stringification
fixes module tests: Test::NoWarnings Moose MooseX::Types