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