(c) When a landlord changes the locks to a dwelling unit under subsection (a) or (b) of this section, the landlord (1) shall, if using a professional contractor or locksmith, be responsible for payment to such contractor or locksmith, (2) shall, at or prior to the time of changing such locks, provide a key to the new locks to the tenant, and (3) may charge a fee to the tenant not exceeding the actual reasonable cost of changing the locks. If the tenant fails to pay the fee, such cost may be recouped by suit against the tenant or as a deduction from the security deposit when the tenant vacates the dwelling unit, but shall not be the basis for a summary process action under chapter 832. For purposes of this subsection, “actual reasonable cost” means the cost of the lock mechanism, as well as the fee paid by the landlord for professional contractor or locksmith services.
(d) A landlord may reprogram a digital or electronic lock with a new entry code to comply with the provisions of this section.