Ok, so this is how i think this works.
As my action i target lock a ship.
I attack that ship, use target lock to reroll, but still miss.
I then am allowed to target lock that ship again, then use gunner to fire again and use the target lock to reroll any dice.
Does tbis sound right?