One possible solution I am considering is to use pthread_self() as a pthread_t value that is guaranteed not to be one of the spun-off threads.
pthread_self()
pthread_t