Return an error in wine_pthread_mutex_unlock if we don't own the critical section, this should avoid trouble caused by a locking bug inside Xlib.