dm: core: Fix handling of uclass pre_unbind method