ensure close file before rename bookmark file.

fix commit  https://github.com/influxdb/influxdb/commit/a9d73f588968190d6a065dab3b329b2ae1e9d264