Apply LAPACK patch correctly. (Fix #4069)