Ehmm how do you prevent people from griefing a less wealthy player?
Say player X has an electronic lock and not that many resources
Say player Y has a ton of resources and he decides to use his 100s of electronic lock picks to grief player X by failing to break the electronic lock. Player X doesn't have the resources to replace his lock so he's locked in/out of his house..
I don't think failing should break the lock, I think failing should electrocute the guy trying to hack into it.
All player X has to do is remove the door (or make locks removable too) and replace it. Impossible for them to get stuck inside unless they don't build a cupboard, but temporarily eliminates the ability for the raider to gain access through that door without explosives or breaking it down.
To keep a door unlocked perhaps you have to leave the electronic attached as well. This could create a fun scenario where you come home to find someone actively raiding your house and they've left heir electronic locks on the door. You remove it and voila they're stuck unless they re-hack it.