V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups