Record gold prices are warning the stock market that higher inflation could return.