Fix for bug #1196383: thread pool breaks -DWITH_PERFSCHEMA_ENGINE=OFF.
This patch introduces some directives for conditional compilation in
threadpool.cc and threadpool_common.cc.
Automerge lp:~sergei.glushchenko/percona-server/5.5-ps-bug1196383