log: make attempt to find non-locked log file name derived from desired
log: make attempt to find non-locked log file name derived from desired

Add numeric index to log filename until log creation is successfull. If
maximum trials are made, create null log instead.

uentity/blue-sky-re,uentity/blue-sky-re,uentity/blue-sky-re