Oops - don't enable this byd efault.
Add some extra fields for logging - the tid and original lock pointer.

curthread->td_tid doesn't work, le sigh, so for now use pthread_self().

Having access to the original lock pointer makes it much, much easier
to link it back to a deadlock in a gdb session.