gold near 4-month low; set for worst week since june