core.c: Change core_build_tree API

to take struct ssa_member * rather than both
union ibv_gid * and node_type as input arguments
in preparation for future changes

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