It could be the Transmission Fluid Temp (TFT) sensor.
(or the wiring to it)
The CPU won't let the car get into 4th gear if it's too cold
It won't lock up the converter if it's too hot.
If it gets too hot, it will enter a pre-set shift mode, disable the lockup in 2,3,4 gears, and turn on the dash light