[MERGE] fix don't close index fd for metadata

Signed-off-by: David Goulet <dgoulet@efficios.com>