proper window creation locks