Fix gshared synchronized wrappers for static methods.
Remove test-sgen from make check in tests/, it takes too much time.