Addressing The Thread Safety Issue In A C Client Implementation