Support wcslib 4.24 in tests

This is in response to @embray's comment here: https://github.com/astropy/astropy/pull/3204/files#r21860935
Needs `LooseVersion(_wcs.__version__)`