At the end of a lackluster second quarter, David Einhorn's $9 billion stock fund saw major gains from its positions in gold and gold stocks.