lib/logger.rb: inter-process locking for open_logfile and create_logfile