drm: Fix use-after-free in the shadow-attache exit code