Make the synchronized wrappers static if the original method was static. Fixes shared-generic-synchronized.2.exe.