There's no real means to
stop them defecting, surely? All the pilot has to do is fly over the border and land, while not getting shot down by the country he's defecting to.
Iran got hold of a drone. It's not quite the drone "defecting" but it's somewhat similar.