core.c: Handle node rejoin in terms of proper calculation of number of children

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