[runtime] Add support for setting the native thread name on linux.