fix some errors of c++11 thread usage in CCTextureCache