Triple homicide suspect threatens judge in court