.gdb_index writer: close the file before unlinking it