Use gerr object to analyze thread_pool_new error

Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>
Merge pull request #2 from ficoos/thread-pool-create-gerr

Good work!