[PATCH v6 01/12] server: Pass a thread flags parameter to create_thread.