MAINT: linalg: get rid of calc_lwork.f

Call LAPACK routines with lwork=-1 to get recommended work array sizes,
instead of using calc_lwork.f (which corresponds to some old LAPACK
version and may not be optimal for newer ones).

Also remove the LWORK check from zgesdd wrapper --- LAPACK makes the
necessary checks itself.