[CORE] vmm_devtree: Add macros to iterate over child nodes and attributes

Iterating over child nodes or attributes of given node is a fairely
common operations hence this patch adds for-loop helper macros for
iterating over child nodes and attributes.

Signed-off-by: Anup Patel <anup@brainfault.org>