Revert "Make synchronized wrappers of generic methods generic the same way it is done with delegate invokes. Fixes #12727."

This reverts commit afb16275b091bcde7f7ac8007f4e0e9d7edd52bf.

Revert this as it breaks tests in mini/.