yet more instrumentation - basically if mutex lock/unlock detects an error
then emit a diagnostic before aborting (this is because gdb is almost useless with threaded shared lib using programs).
Authored by: sms00 2005-01-14
Parent: [r2632]
Child: [r2634]