Name threads on Linux properly

It helps debug issues if we can easily identify the XBMC thread by name. This patch implements just that.

I upstreamed this at: https://github.com/xbmc/xbmc/pull/2323