[lib] fix searpc codegen issue