@Override
    public void close() {
        lock = false;
    }
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