[config] unregister if library does not exist

If provider/loader was removed it should be unregistered

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>