public Lock addLock() {
            return rwLock.readLock();
        }
Lock of {@link #add}.
Operations of assigning offsets, for example {@link WriteAheadLog#append}, need to be performed while holding the lock.
s3stream/src/main/java/com/automq/stream/s3/S3Storage.java