fix casecompare return type for ninfo, tkey, txt

(cherry picked from commit 3ba1d1e4)
7 jobs for 343-casecompare-of-ninfo-tkey-txt-have-wrong-return-type-v9_11 in 6 minutes and 42 seconds (queued for 5 seconds)