core: doxygen fixes to thread.h