altos: full logging must flush pending data before checking state