core: Add vec::raw::mut_buf_as_slice

Like `buf_as_slice` but for mutable pointers and slices.