A lockdown happens when correctional officers decide there is a threat to the safety and security of a prison. That might be a fight, an assault, or a race riot.
It is exactly what it sounds like. In a lockdown, inmates have to stay in their cells until the problem is contained. They can't go anywhere unless strip-searched, handcuffed, and escorted by correctional officers.