Bullion rose as much as 1.2% to break above $5,100 an ounce, though was headed for a weekly loss of nearly 3%