My 98 Accord Coupe does the same damn thing. What I usually do is hit the brake pedal a few times until I hear the click, and then it'll shift out.
One thing a mechanic told me is that there may be a coin or something inhibiting the solenoid that releases the shift lock.
If you find something else out please let me know, because this shiat is getting on my nerves too.