The precious metal is on course for its best year since the 1970s, underscoring unease in financial markets.