Question: why mgcl2 in lysis buffer?
Answer: Having both in a single buffer makes little sense. The EDTA removes magnesium ions, the MgCl2 adds them. You might want to watch out for using an EDTA containing buffer with His tagged proteins. The EDTA will chelate out the cobalt or nickel in the column used for His tag binding.