A shareholder rebellion forced Barrick Gold to confront catastrophic environmental damage at its mine in Papua New Guinea.