memcg: fix a crash in wb_workfn when a device disappears