I'm sorry, I should have said:
"There's a remotely small chance that IF you shoot someone in your house with the gun that's in your bedside table unlocked as you slept next to it, AND you're stupid enough to talk about it to the cops, you might be in trouble. Therefore, you should lock it up. After all, you're far better off bleeding out as you watch an armed intruder rape your wife than risk trouble over a potential violation (maybe) of safe storage laws that no one gets charged with." /sarcasm
I'm pretty paranoid about legal compliance, but what you're describing is, I think, an over-cautious approach. Lock it up when you get up, unlock it when you go to bed. Not hard to do.
Not trying to bust your balls, but you're over thinking this IMO.