Fix up various race and reuse issues around spdy.