At Miraflores Locks trains guide a ship across the water while a group of tourists look on. More than a century after American engineers completed the Panama Canal and 25 years after the United States ceded it to Panama, Donald Trump, the president-elect, says he wants it back. The canal, he said, was a “gift” that should never have been given.