Damascus and the Kurdish SDF have traded accusations over prisons holding Islamic State affiliates, amid attacks and prison escapes.