Inglorious writedowns: Gold sector’s bad bets wiping out lifetime earnings — and investor confidence