obu: ensure that the frame header reference is writable
We're blindly writing to the reference if it's already allocated (presumably because ownership was not moved from Dav1dContext
to a Dav1dFrameContext
by dav1d_submit_frame
, so it's recycled). This check ensures we don't introduce a regression by accidentally breaking this assumption.