It used to be that the lockpick or key would always trigger the trap on the door. The only way around was to break the door, then throw him out. Or pull him out with the tadpole power.
But he's bugged since the most recent update. Now breaking the door kills him also. But you can break the planks on the bottom of the cage, and he will fall out. But even though he is standing right there, and you can walk up next to him, you can't talk to him because you "can't reach" him. But if you try to throw him so you can reach him, he dies. And the tadpole power won't pull him.