As thousands of turbines near retirement, owners must decide whether to invest in upgrades or walk away from a vital source of clean energy