Fix typo
Issue #21752: Documented change to behaviour of logging.getLevelName().
Closes #21752: Merged update from 3.4.
Issue #21742: Set stream to None after closing.
Closes #21742: Merged fix from 3.4.