[PATCH 4.14 13/43] tools build: Check if gettid() is available before providing helper