dm: core: Allow obtaining a node offset in the same tree