These rather different meanings (i.e., "join" vs. "threaten") are traditionally treated as a single lemma in Syriac lexicography, presumably derived from the single idea of "to adhere to something" It may be preferable to separate them even though to judge by Arabic (where the cognate is lḥm there is only one original Semitic root. Note that it is the passive forms that take on the meaning "threatening".