Gold mining costs climbed to a record high of $1,930 an ounce, driven by sharp cost inflation, yet global output remains on track for another annual record.