Setup ensure_pinned before marking as RString

This ensures that we see the dmwmb pointer and rstring ptr in sync in
another thread. Otherwise one could have been set while the other was
still not.