SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code. in (wrapper managed-to-native) System.Threading.Monitor.Exit(object)