add warning when failing to lock the style checker mutex
If this actually happens to a user for some reason it will be very hard to find out what's going on otherwise