[utils/stringmap] add missing export_api, use keylen saved in uthash instead of calculating strlen() everytime.