I have a 1998 with the exact same issue....console shifted.
I have had the console apart and looked at the switch.. it seems to be working. I checked it with a meter.
On my 98.... there is a small hole on the bottom side of the steering column. If you take a long small diameter screwdriver,stick it in the hole,it will unlock the switch.
I have also noticed when ity sticks.... if I move the sterring wheel all the way up.. it unlocks.
Your 97 is probably similar...