Gold mines are still stocks. They may have gone down for a variety of reasons overvaluation, falling company earnings, etc.
What would be a better offset to a market crash would be the actually commodity itself. If you look at GLD which holds gold and tracks the commodity it did much, much better than the rest of the market in 2008.
GLD was a sort of safe haven for investors during the crash and did live up to its name.