Gold futures score first gain in three sessions