[PATCH v3 14/42] tools/nolibc: Implement gettid()