add thread blocking debug