DMAR: clear dmar_devs[unit] if attach failed
PR: 280817
(cherry picked from commit 45543d3424d46f84a5399879e190fc359dcefbd4)