private void setTimeout(int seconds) {
        lock.writeLock().lock();
        try {
            if (isValid()) {
                NativeCrypto.SSL_CTX_set_timeout(sslCtxNativePointer, this, seconds);
            }
        } finally {
            lock.writeLock().unlock();
        }
    }
This is provided for API-compatibility only, not intended for use. No guarantees are
made WRT performance or the validity of the returned session.
common/src/main/java/org/conscrypt/AbstractSessionContext.java