Double-walled pipe for welding into pipelines with reduced weld stress