If Perl_hv_backreferences_p is not defined then use normal magic check to find weakrefs