Donald Trump's threat to retake the Panama Canal can alienate an important ally that the future administration will need.