[aot] Add support for constrained gsharedvt calls which return a reference value. Fixes #13030.