[PATCH v3 02/14] selftests/nolibc: gettid: restore for glibc and musl