freedreno: handle batch flush in resource tracking