_delete and _insert both seems fine, but use test command (-c 2 -t), it seems to be that just one thread has the CPU, other can not, and at last, the thread who has cpu quit ok, but another one has an deadlock.