Add UBInt24 implementation.

A few TLS structs require this.