Many race conditions of tokyocabinet HDB fixed