ide: ide_unregister() locking bugfix