My guess is that it's a fairly old causative form of -kaa, meaning "to make stay" and the meaning has changed over time to mean "to fasten", "affix", "make firm".
There is another causative form from -kaa, which is -kalisha, meaning "to settle (someone/something)", "to seat (someone/something)".