There should be an option to have KDE Connect disconnect (or just refuse to control) a computer whose screen is locked.
Why? The device is trusted.