fixes #1859 in accordance with https://github.com/LAPACK-Reference/issue/296
Based on 3.4.2 version, apply patch.for_lapack-3.4.2.