Allow use StdoutBuffer context manager inside another similar context manager. This allows running the tests by a test runner which collect the output using similar trick.