check deadlock