util: Fixes coverity issues in str.c
util: Fixes coverity issues in strbuf.c
util: Fixes coverity issues in sys.c
util: Fixes coverity issues in pool.c
util: Fixex coverity issues in p_date.c
util: Fixes coverity issues in lock.c
util: Fixes coverity issues in lib.c
util: Fixes coverity issues in file.c
util: Fixes coverity issues in cmod.c
util: Fixes coverity issues in calc.c