[testlib] Deprecate with_tempdir (Closes #8267966) [applied]