Inherited from Old Polish kłótka, from Proto-Slavic *koldъka. By surface analysis, kłoda + -ka.
kłódka f (diminutive kłódeczka)