Bug Fix - threadpool_free().

Pending tasks were not executed if the 'threadpool_free' was called. The pool should now wait till all pending tasks are executed.

Posted by Tomer Heber 2013-11-07