Fix scdf loop var free check for phi vars The variable may come from a phi node, in which case we should take the defining block from it. Fixes oss-fuzz #40453.