Gold ends lower after 3-week climb as traders look to coming jobs report