gold futures close with gains