Gold finishes slightly higher, avoids 4-session skid