lock debug logging

Logging when lock is acquired and released to help in debugging AUTO-587

I haven't added any tests. Would like people to review and give their comments. Please note that I've added `debug` and `category` fields to distinguish as debug logs. Please comment if their is better way to tag debug logs. AFAIK, twisted does not have notion of debug logs.