The threadId must be an unsigned 16 bit

The threadId() is must return an unsigned 16 bit.

The VanillaChroncileTest now passes on my Mac.