Fix a bug related to threads blocked on blackholes