MOSYNC-3338: the index of the insert syscall can be equal to the number of children (if equal, the child will be inserted at the end of the array)