Gold prices mark a loss as U.S. equities, dollar gain ground