@VisibleForTesting
    void clear() {
        lock = false;
        byteArray = EmptyArrays.EMPTY_BYTES;
        charArray = EmptyArrays.EMPTY_CHARS;
        intArray = EmptyArrays.EMPTY_INTS;
        stringBuilder = inflate(new StringBuilder());
    }
Acquire the current {@link Thread}'s {@link TemporaryThreadLocals} with lock. It should be used with
try-with-resources statement.
core/src/main/java/com/linecorp/armeria/internal/common/util/TemporaryThreadLocals.java