Instead of changing ownership of the house, wouldn't a "tenant" faction be easier? The Player could be always in it and the renter added to it and removed from it as applicable. That way the owner (Player) alway retains access, and you aren't locked out of your own house.
You'd need one per house, of course.
Well I need to have the player denied access, like he is breaking in.
It is a mod to rent out the players houses. On renting out, the key for that house is removed and only given back on ending the rental agreement.
I have new NPC's that appear in the homes once they are rented, but I can't give the ownership only to them.