[PATCH 8/9] selftests: Fix stdbuf compatibility in mixed libc environments