Block threads by thread prefix.