Gold settles lower for third day as dollar stabilizes