Longitudinal Wake Field in a Lossy Pipe with Finite Walls Thickness