fix possible fd leak via missing O_CLOEXEC in pthread_setname_np