replace pthread

Use std::thread std::mutex and std::variable_condition instead of pthread in CCTextureCache.

todo:
Replace pthread in other classes, such as AssetsManager, WebSocket ....