Fix locking for add logItem