add mutex deadlock detect in debug mode