Introduce `StringIO.flush/1` function
Merge pull request #2793 from lexmag/master

Introduce `StringIO.flush/1` function