Adds tp_stat conditional around thread_pool metrics collection.

The option to not track thread_pool metrics exists however it is not
applied in the code. Adding this if/else block around the thread_pool
metrics collection allows a user to not track thread_pool metrics.
Merge pull request #756 from cotap/es-fix-conditional

Adds tp_stat conditional around thread_pool metrics collection.