freedreno: Fix data races with allocating/freeing struct ir3.