<<how on earth did thwart also come to mean to foil somebody`s plans, to oppose successfully?>>
Just a guess: to sit athwart -- across (in front of) -- in the way = to block
IP