conts: threads_demo: Update for API changes