gold closes higher on thoughts of inflation ahead