Governments are copying corporate financial tricks to fix their economic woes — with dangerous consequences