If I found someone in my house, rekeyed or not, I’d eject them forcefully. Period. My house being “locked” wouldn’t keep me out for more than 15 seconds. And then there would be hell to pay.
In NYC, you have no right to use force for defending property. You’d be charged with assault or murder.