thread: convenience trace methods

Implementation of declared trace methods for (null-temrinated) C string
and character buffer with given length.