[aot] Fix support for synchronized wrappers of gsharedvt methods.