You can temporarily use a wood shim to keep the door closed for now.
I have AP cages and purchased the locks for all of them because of stories of boas figuring out how to open their cages. I'm sorry your guy got out, but at least you've found a lock to buy so you won't have to worry about it happening again.