timer_test failed to compile if cmocka was enabled but threads were not

44 jobs for !1547 with each-fix-timer-test in 19 minutes and 15 seconds (queued for 5 seconds)
merge request