I think you are still running X3. At least that is the last version referenced in your posts. When posting questions here it is useful to know which DAW and version, the question is about. Make sure SONAR is updated to X3e (or better still consider
upgrading to CbB if running 64bit Windows 7 or newer). There were some issues with a so called "MIDI crosstalk" bug in older versions of SONAR, including older builds of X3. AFAIK, the only time something like this happens since X3e (maybe d) is by design and may be easily avoided.
Taking manual control of "input echo" (IOW turning "Always Echo Current MIDI Track" off) prevents tracks from automatically changing their inputs from None to Omni. While not entirely necessary, I find it easier to remember to reset a track input when manually setting "input echo" rather than having to adjust inputs every time an instrument/MIDI track looses focus.
Making sure to turn off "Enable MIDI Output" when inserting synths prevents them from sending MIDI data. Not all synths have this feature but for those that do, starting with X3 it is enabled by default. Of course, there are cases when "Enable MIDI Output" needs to be turned on, this is when manual control of "input echo" really comes in handy.