driver core: fix using 'ret' variable in unregister_dynamic_debug_module