Added winpr debug functions to generate a stack trace.
Using WLog now for mutex debugging.