hold_locked_index(): align error handling with hold_lockfile_for_update()