imsm: fix activate_spare off-by-one