gold holds near three-week high, set for weekly rise