mds-kbdc: simplify mds_kbdc_tree_dup

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: compile-layout: more tested and bug fixes

Signed-off-by: Mattias Andrée <maandree@operamail.com>