Exclusive: Revelation will put pressure on incoming justice secretary to deal with legacy of ‘IPP’ jail terms