core.c: Fix core_build_tree for access node initialization and GID

Now created following distribution tree topology:
core <-> access <-> 2 ACMs

Signed-off-by: Hal Rosenstock <hal@mellanox.com>