Unstick the lock by pushing a thin object like a straightened paper clip or bobby pin through the small hole on the opposite side of the push-button on the door knob. This often unsticks the lock button by itself.
Remove the entire door knob using a screwdriver if Step 1 doesn't work.
Part the two sides of the door knob, and peek inside. Spray the entire inside of the lock with a pressurized air duster to knock any loose debris that can be affecting the button lock.
Coat all the mechanics inside the lock with a spray lubricant to loosen them and allow the parts to better work together. Turn the door knob from side to side as you spray so the lubricant can get in between the parts, as well. Press the stuck lock, and wiggle the knob back and forth until it pops up.
Re-attach the door knob to the door.