TST: linalg: make sure that running the xerbla test is safe

Check whether xerbla aborts the process, and skip the test otherwise.

Another option would be to just remove the xerbla test. OTOH, there was a bug without GIL there earlier.

Fixes gh-3299