gold closes higher for first time in three sessions