[PATCH v4 05/33] tools/nolibc: Implement gettid()