LPS-46672 clear thread local upon completion of invocation