Gold set for third day of losses as dollar firms