use correct realloc size for ktapc table/string resize

This patch fix the coredump when ran:
./ktap samples/syscalls/errinfo.kp

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>