lock and delete both threads, problem solved.