Pakistan poses a policy headache for the White House - whoever wins the US presidential elections in November, writes Kevin Connolly.