core: use prctl() to set thread name.