[PATCH v2 18/32] dm: core: Add a function to create an empty tree