[PATCH v4 01/11] server: Pass a thread flags parameter to create_thread.