The problem with a prison is they are designed to keep you in not zombies out.
Actually, they are designed for both. They keep prisoners in while keeping those who would try to free them out. Granted, those on the outside have more access to tools to get through the barriers, but zombies wouldn't (hopefully at least) be smart enough to bring a pair of bolt cutters with them.