Thread: fix double definition of i in test.

[SVN r86466]
Thread: fix change of BOOST_THREAD_VECTOR to boost::csbl::vector.

[SVN r86467]
Thread: cleanup replacing some macros by the types imported on csbl namespace comming from std or boost. Cleanup work type ussage.

[SVN r86471]