Mark the segment as LOADED before inserting any objects into the
cache. This resolves a race condition where another thread may be
doing the fixup while the loader thread is still inserting this
segment's objects. If this happens before the reader marks the segment
as LOADED, an assertion is thrown.
Fix deadlock issue that could happen when a streaming client failed
the If-None-Match check.