freedreno: fix potential use-after-free on a5xx+