lib/logger.rb: updated inter-process locking mechanism to not retry open_logfile recursively