radeonsi/gfx9: prevent a race when the previous shader's main part is missing