gold settles higher for first gain in four sessions