add C11 thread functions operating on tss_t and once_flag