ide: fix the ide_release_lock imbalance