Isn't it against the law to leave any gun unattended anywhere including your house without it being locked in a safe or a gun lock on it?

As stated in other posts from the practical matter, many great shots can come up going to and coming back from the stand, why would you significantly reduce your hunting opportunities leaving your rifle int he stand?