make tdestroy allow null function pointer if no destructor is needed
make tdestroy allow null function pointer if no destructor is needed

this change is to align with a change in the glibc interface.

chardi/musl,chardi/musl,chardi/musl