build: Check for SIGEV_THREAD_ID if profiler enabled

Apparently this is not available in some standard libraries, so it should
be checked during configure.

Closes: #132
25 jobs for 132-check-sigev-thread-id in 17 minutes and 45 seconds (queued for 99 minutes and 11 seconds)
Status Job ID Name Coverage
  Source Check
passed #70332
cppcheck

00:00:44

passed #70333
cpplint

00:00:57

passed #70334
eslint

00:00:38

passed #70331
fedora

00:02:34

 
  Test
passed #70337
no_graphics

00:02:04

passed #70338
no_profiler

00:02:11

passed #70339
no_readline

00:02:14

passed #70335
sanitizer_gcc

00:03:57

passed #70336
with_logging

00:02:22

 
  Manual
manual #70353
allowed to fail manual
armv8
manual #70340
allowed to fail manual
codequality
manual #70341
allowed to fail manual
code_statistics
manual #70355
allowed to fail manual
coverage
manual #70343
allowed to fail manual
fedora_gcc
manual #70349
allowed to fail manual
flatpak
manual #70344
allowed to fail manual
installed_tests
manual #70347
allowed to fail manual
lts
manual #70354
allowed to fail manual
ppc64le
manual #70342
allowed to fail manual
sanitizer_clang
manual #70346
allowed to fail manual
ubuntu_clang
manual #70345
allowed to fail manual
ubuntu_gcc
manual #70348
allowed to fail manual
valgrind
manual #70352
allowed to fail manual
zeal_11
manual #70350
allowed to fail manual
zeal_2
manual #70351
allowed to fail manual
zeal_4