(g) An owner who takes action to prevent the tenant, co-tenant or household member who has complied with subsection (b) from changing the locks, or any owner who changes the locks but fails to make a good faith effort to provide a key to the tenant, co-tenant or household member requesting the lock change as provided in subsection (d), shall be liable for actual and consequential damages or 3 months' rent, whichever is greater, and the costs of the action, including reasonable attorneys' fees, all of which may be applied in setoff or recoupment against any claim for rent owed or owing for use and occupancy. Damages shall not be imposed if the court determines that the owner acted in good faith.