Two letters that contained threats to New York Mayor Michael R. Bloomberg — one addressed to him, the other to Mark Glaze, the director of Mayors Against Illegal Guns, a group Mr. Bloomberg helps run and finances, have tested positive for the deadly poison ricin.