Fix an assert in mini_emit_stobj () when sgen+gsharedvt are used together.