Set thread name in SetNameFunction()

Signed-off-by: Amit Dror <amitd@infinidat.com>