>> It got louder, so he looked out the peephole. Outside, he saw an unknown man at the door with another behind him who had a mask on. He locked the door and went to get his rifle
Is that lying in wait?
“Is that lying in wait?”
Not a lawyer, but if the guy locked the door he was not lying in wait, but trying to prevent a forced entry. Had he simply retrieved his rifle and waited for the intruder to enter through a door he knew was unlocked, then perhaps they would have an issue.
Not in your own house. No duty to flee out the back door.