@MustBeClosed
    public static TemporaryThreadLocals acquire() {
        final Thread thread = Thread.currentThread();
        final TemporaryThreadLocals tempThreadLocals;
        if (thread instanceof EventLoopThread) {
            tempThreadLocals = ((EventLoopThread) thread).temporaryThreadLocals;
        } else {
            tempThreadLocals = fallback.get();
        }
        tempThreadLocals.lock();
        return tempThreadLocals;
    }
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