Compare the state of a pool with the parameters
Compare the state of a pool with the parameters

This patch fixes the queuing logic of tasks. Depending on the various
thread pool parameters, it could exceed up to `thread_pool_max` tasks
in the queue.

gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache,gquintard/Varnish-Cache