ide: add ide_[un]lock_hwgroup() helpers