[PATCH] mdev: fix daemon crash on reattach mdevs