dm: sync cache and thin changes that agk staged in linux-next for v3.9