tests: fix tst-dlfcn

info.dli_sname can be null; account for it.

Suggested by Nadav.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>