gold futures end higher, tally two-session gain of $21