[PATCH] dm: fix mapped device ref counting