Recurring dreams mean that your psyche it trying to tell you something. Other people in dreams can be another part of yourself. Prison is a place of incarceration. Do you feel trapped by a juvenile part of yourself or some event that happened when you were younger? Or parts of your self are guiding you back there.