[common] removed ThreadPoll class
[common] added traits function which will return reference to passed object