Fixfor fx 236 remote tbb thread

Removed tbb & poco threads
Moved lock & mutex def to thead.hpp
Removed tbb locks & mutex
Fixed Win build