core: Add vec::raw::mut_buf_as_slice

r?

Like `buf_as_slice` but for mutable pointers and slices.