Check door open state when locking