detecting dead lock in catalog