pool: Introduce thread-local queue

It's needed to satisfy needs of processing every queue element constant
number of times instead of unknown time before