The sentence that requires commas to offset a nonrestrictive clause is:
Margaret Thatcher, who was the British Prime Minister, used anadiplosis in an address.
In this sentence, "who was the British Prime Minister" is a nonrestrictive clause providing additional information about Margaret Thatcher but is not essential to understanding who she is. Therefore, it should be set off by commas.