Fix `make doc`.
Replace `to_mut_unsafe_ptr` by `to_unsafe_ptr` when possible.