Fixed the concurrency problems in the kyotocabinetdict module