dict queue - block & thread safe

Signed-off-by: gf0842wf <gf0842wf@gmail.com>