tests/c-api: Test that the library can really be loaded with dlopen.

Answer is yes, but it was good to know.