core: ofnode: add ofnode_get_parent function