gold futures mark first gain in six sessions