Once when I was a kid, my parents and my aunt and I got adjoining rooms. The adjoining door would lock behind you automatically. The front door to the first room was latched, and when I closed the adjoining door we were locked out. My dad ended up picking it open with a do not disturb sign.