gold trims losses on inflationary concerns