Fix shlibloadtest to properly execute the dso_ref test