State inmate charged with threatening a judge