http: clear chunked state before invoking callbacks
Ensure chunked state is not lost if updated through callback.
This should never happen since the callback should be invoked asynchronously. Adding an assertion here to enforce the invariant is more complicated than just avoid the sync vs async case entirely.