usb1: Rework finalizer registration

Simplify the code.
Stop using object ids as identifiers, instead generate sequential numbers.
Automate removal of the finalizer.
Factorise code.
2 files changed