Ugaritic

ḥlm - fully grown, mature animal (DUL 361)

PCS
*ḥlm - to become healthy, mature (SED I 291)
Probably a semantic development ‘to become healthy, mature’ < ‘to attain puberty’ < ‘to have nocturnal ejaculations’?