comex gold scores first gain in three sessions