Laos borrowed billions from President Xi Jinping's government to finance railways, highways and hydroelectric dams, depleting its foreign reserves in the process.