I've experienced that "sticking throttle" before, and I believe it was engine related, not transmission. It did it several times on my way to work, and one time I pulled over, shut the engine off, restarted, and the idle was back to normal. No codes that I can recall, but I think the ECU was trying to compensate for some perceived emissions (O2) readings. I think it went away by itself. I would suspect a dirty MAF, sticking EGR, or O2 sensor before a tranny or muffler. You could always try a 20 minute battery disconnect to reset the computer.
Gregg
2001 Proton Yellow #1379