core: Add vec::raw::mut_buf_as_slice
auto merge of #5305 : brson/rust/mut_buf_as_slice, r=luqmana

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