[PATCH v2 1/5] kunit: string-stream: Simplify resource use