Fix a bug where log rotation did not properly flush and force the neostore with the new log version