parlib: Add the uthread_is_thread0() helper