The foundations were crumbling beneath some buildings at the Maryland Correctional Institution in Jessup. Others needed new roofs, upgraded electrical systems and other repairs. Fixing the 45-year-old prison would cost hundreds of millions of dollars. So, Maryland officials decided to shut it down. When MCI-J, as the facility is called, closed last week, Maryland became at least the 21st state this century to partly or fully shutter a correction…