make frametime state flags properly atomic read/write