Merge "libdm: add an api to unwind dm stack"