perf(ohos): apply no-side-effect size opts for KN and libkuikly (#1600)