add thread_getname function

this adds a getter for a threads name, which was set on creation. now "userland code" can access this field.