of: move of_get_cpu_node implementation to DT core library