Gold gains on safe-haven demand as Iraqi unrest escalates