Fixed lock(this) problems. All tests now pass.
Early support for [MethodImpl(MethodImplOptions.Synchronized)]. Not yet working.