Gold investors have had a painful month so far, with prices plunging to near 3-year lows, but the sell-off might be healthy for the broader market.