A prolonged natural gas pipeline leak in Peru is suddenly laying bare the costs of its chronic political instability, a phenomenon that’s often shrugged off by investors.