Formation of current sheets in structurally stable and structurally unstable magnetic configurations with two null lines