__sync_child
p = __sync_child(p)[__sync_branch_idx(p, id)];
__sync_child(p)[idx] = child;
__sync_child(p->parent)[idx] = next;
next = __sync_child(p)[idx];
__sync_free(__sync_child(p)[i - 1]);