1.0dev.20: fix concurrency bug in queue