module-loader: fix resource leak for dlhandle

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>