closed #4683: use assert because CCASSERT is not thread safe
Merge pull request #6171 from minggo/iss4683-assert_not_thread_safe

use assert because CCASSERT is not thread safe