[PATCH v2 4/6] sandbox: log: Avoid build error with !CONFIG_LOG