core.c: Change core_member children counters to atomics

Currently children counters may be updated in upstream or
extract threads, therefore the atomic counters.

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