My memory switched on - the two wires you are talking about probably go to a solenoid that is mounted alongside the carbs. This solenoid (with other parts) controls the idle speed. When in gear, the solenoid opens, providing vacuum to a dashpot that slightly opens the throttle, so that the bike doesn't die in gear. This system is discussed in the Service Manual available on this site.