gold futures end the session with a modest gain