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