illegal this thread should lock