bail out if module_init fails; clean up in dlsym cases as well

if dlsym returns error, we leaked the dl handle

if the module_init failed and returned NULL, we would have deref'd the
pointer and crash

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>