Gold extends weekly losing streak, raising risk of sub-$4,000 test