Handle wrapping around in flash_log_free_blocks()