Make index update interruptible

Signed-off-by: Jerome Flesch <jflesch@gmail.com>