Pan American Silver’s dance with non-profits shows why ESG is now the main risk for miners