Add `WriteBatch::Release()` that releases the batch's serialized data to the caller.