[sanitizer] fix calloc overflow in asan/tsan/msan