In full keyboard mode, you can set the SD40 to NOT change chords as long as the sustain pedal is depressed. Maybe it would work the same with the guitar?
Roland's RA series modules used to do this. You could play a chord, hit the sustain pedal, then solo over it till you release the pedal. Very cool for a guitarist.