Castro wanted it to end. That's why he left the door unlocked.
Why would he be so diligent always locking everything and then one day he doesn't? The night before they show Michelle talking to Castro about giving himself up.
I believe he thought he could not keep this up anymore, mainly because Jocelyn needed to be free.
Any thoughts on why all of a sudden after all those years, he left the door open?