[PATCH v4 26/44] dm: core: Add a function to create an empty tree