[PATCH 6.9 208/427] selftests: ktap_helpers: Make it POSIX-compliant