gold futures mark first gain in four sessions