Inside ordinary-looking homes, Islamic State militants had built prisons in order to keep their jails and security safes and hidden. As members of the Iraqi armed forces inspected the former prison, some were all too familiar with the scene as they had been held here before.