I have not experienced the issue that you have described, so I am posting this in the sense of some general info regarding a known looping issue with Sonar. Not intending to troubleshoot your problem, but you may find this info useful.
I ran across a looping issue with Sonar and a WaveDNA plugin (Liquid Rhythm) last year, where the vendor indicated a known issue with Sonar and looping.
The plugin can run in standalone mode using its own transport, or as a plugin that is slaved to the transport in the host DAW, such as Sonar. To loop the Liquid Rhythm plugin, you set a loop region in Sonar's timeline using one or more bars, then hit play. The plugin will sync together with the DAW and play back whatever patterns you have input in the plugin, and can modify them in real-time as the loop plays back. You can use the MIDI out from the plugin to trigger another drum kit in the DAW.
The weirdness was that sooner or later Liquid Rhythm would just lose the loop sync and stop looping. Hitting stop, rewind, and play got it working again, but it was annoying...
I sent an email to WaveDNA support and received this response:
Thank you for supporting our software! I'll do my best to help you sort this out.
Sonar has always posed unique sync issues (like loop region loss, etc). For this purpose exclusively, we have a diagnostic setting I'd like you to try. In Liquid Rhythm, open the Preferences pane and click the Diagnostics tab. Once there, please enable Alternative Playhead Redraw. This was meant to correct the timing between our VST and Sonar.
Let me know if this resolves your issue. Unfortunately, Bitwig and Sonar have always given us issues. This same plugin version works fine in Ableton, Cubase, Studio One, Logic, Reaper, but is unpredictable in Bitwig and Sonar. I realize this is bummer; I hope you can use our software productively.