gold ends lower for first time in three sessions