Log if logging fails
* src/debug.cpp (lock_log): Do not wait infinite for log lock. (do_log): Log to debug output if obtaining the log lock failed.
I do not see how this can fail. But still an infinite wait
should be avoided and the failure handled at least with a
short note.