i2c-dev: attach/detach_adapter cleanups