vfio/common: Move VFIO reset handler registration to a group agnostic function