freedreno/a5xx: refactor out helper for LRZ flush