test-read-midx: fix leak of bitmap_index struct