Include exception info in logging mesages when lock acquisition fails.