fix db_thread bug(the kernel bug exists in WriteBatch.clear)