cddl/contrib/*/thread.h: Internalise thread_t as it conflicts

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>