Logging for DB thread-locks