Gold prices eke out 3rd gain in a row