drm: avoid kernel oops in some error paths calling drm_lastclose