srrd/trunk: added thread_sem_*() which prints debug output for all sem_*() function from sem.[ch] which now is encapsulated by thread.[ch].