Issue #23725: Overhaul tempfile docs.

Patch from Zbigniew Jędrzejewski-Szmek.