addons: fstorage: close fd before renaming.

win32 can't rename a still open fd